//
//  AJUIHelper.swift
//  OneDollar
//
//  Created by leeqb on 11/13/15.
//  Copyright © 2015 powerlee. All rights reserved.
//

class AJUIHelper: UIResponder {

    class func initAppearence() {
        UINavigationBar.appearance().barTintColor = UIColor.whiteColor()
        UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
        
        /*UINavigationBar.appearance().backIndicatorImage = UIImage(named: "nav_back_n")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)
        UINavigationBar.appearance().backIndicatorTransitionMaskImage = UIImage(named: "nav_back_h")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)*/
        UINavigationBar.appearance().tintColor = UIColor.whiteColor()
        UINavigationBar.appearance().setBackgroundImage(UIImage(named: "bg_nav"), forBarPosition: UIBarPosition.Any, barMetrics: UIBarMetrics.Default)
        
        if #available(iOS 8.0, *) {
            UINavigationBar.appearance().translucent = false
        }
        UITabBar.appearance().barTintColor = UIColor.whiteColor()
        
        // 状态栏字体颜色设置为白色
        //UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent
    }
    
}
